import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import musicHome from '@/components/music/musicHome'
import musicMvContent from '@/components/music/musicMvContent'
import musicStateContent from '@/components/music/musicStateContent'
import musicSingerContent from '@/components/music/musicSingerContent'
import musicRecommend from '@/components/music/musicRecommend'
import loading from '@/components/loading/loading'
import mvDetail from '@/components/music/mvDetail'

Vue.use(Router);

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'musicHome',
      component: musicHome
    },
    {
      path: '/mvDetail/:id',
      name: 'mvDetail',
      component: mvDetail
    },
    {
      path: '/musicHome',
      name: 'musicHome',
      component: musicHome
    },
    {
      path: '/musicMvContent',
      name: 'musicMvContent',
      component: musicMvContent
    },
    {
      path: '/musicStateContent/:id',
      name: 'musicStateContent',
      component: musicStateContent
    },
    {
      path: '/musicSingerContent',
      name: 'musicSingerContent',
      component: musicSingerContent
    },
    {
      path: '/musicRecommend',
      name: 'musicRecommend',
      component: musicRecommend
    },
    {
      path: '/loading',
      name: 'loading',
      component: loading
    }
  ]
})
